<script setup>
import {getNoteSelf} from "@/api/user";
import {onMounted, reactive} from "vue";
import MNoteInfo from "@/components/m-note-info/m-note-info.vue";

const obj = reactive({
  noteSelfList: []
})

const getSelf = async () => {
  const res = await getNoteSelf();
  console.log(res.data)
  obj.noteSelfList = res.data;
};

defineExpose({
  getSelf
})
</script>

<template>
  <div>
    <m-note-info :notes="obj.noteSelfList"/>
  </div>
</template>
